package com.wjl.guli.service.edu.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel(value="Teacher查询对象")
public class TeacherVo {
    @ApiModelProperty(value = "老师姓名或姓氏")
    private String name;

    @ApiModelProperty(value = "头衔 1高级讲师 2首席讲师")
    private String level;

    @ApiModelProperty(value = "最早入驻时间",example = "2020-01-01")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private String firstJoinDate;

    @ApiModelProperty(value = "最晚入驻时间",example = "2020-01-01")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private String lastJoinDate;

    @Override
    public String toString() {
        return "TeacherVo{" +
                "name='" + name + '\'' +
                ", level='" + level + '\'' +
                ", firstJoinDate='" + firstJoinDate + '\'' +
                ", lastJoinDate='" + lastJoinDate + '\'' +
                '}';
    }
}
